package com.website.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Collection;

@Data
@TableName(value = "sys_role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 4345343672504526860L;
    /**
     * 主键自增ID
     */
    @TableId
    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 备注
     */
    private String note;

    @TableField(exist = false)
	private Collection<SysPower> powers;

	public SysRole() {

    }

    public SysRole(String name) {
        this.name = name;
    }
}